@import '@/styles/utils.scss';

.pageCont {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background-color: #f5f7fa;
  overflow-x: hidden;

  :global(.dark) & {
    background-color: #1f2023;
  }

  :global {

    .slick-slider,
    .slick-list,
    .slick-track {
      height: 100%;
    }

    .slick-slide>div {
      height: 100%;
    }

    .slick-prev {
      left: 16px;
      z-index: 10;
    }

    .slick-next {
      right: 16px;
      z-index: 10;
    }

    .slide-content {
      width: 100vw !important;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: #f5f5f7;
    border-bottom: 1px solid #e5e5e7;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;

    :global(.dark) & {
      color: inherit; // 添加一个属性，避免空规则集警告
      background-color: #1f2023;
      border-bottom: 1px solid #3F4245;

      .title {
        color: #fff;

      }
    }

    .title {
      font-size: 24px;
      font-weight: 600;
      color: #313131;
      margin: 0;
    }

    .controls {
      display: flex;
      gap: 12px;

      button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.2s ease;

        span {
          font-size: 14px;
        }
      }

      .playButton {
        background: #353535;
        color: white;
        border-radius: 8px;

        &:hover {
          background-color: #444;
        }


        :global(.dark) & {
          background: #1F2023;
          border: 1px solid #3F4245;
          color: #fff;

          &:hover {
            background: #313234;
          }
        }
      }


      .downloadButton {
        // background-color: #f0f2f5;
        // color: #333;
        background: linear-gradient(180deg, #FFFFFF 0%, #EEF0F4 100%);
        border: 1px solid #D6DBE5;
        color: #353535;
        border-radius: 8px;
        font-size: 14px;
        cursor: pointer;
        // padding: 5px 10px;

        &:hover {
          background: #F3F3F3;
          border: 1px solid #E3E3E3;
        }

        :global(.dark) & {
          background: #1F2023;
          border: 1px solid #3F4245;
          color: #fff;

          &:hover {
            background: #313234;
          }
        }
      }
    }
  }

  // Waterfall layout
  .slidesWaterfall {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 40px;
    padding-top: 70px;
    padding-left: 24px;
    padding-right: 24px;

    .waterfallItem {
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 6px #0000001a;
      border: 1px solid #e0e0e0;
      width: 100%;
    }
  }
}

.fullscreenToolbar {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: rgba(30, 30, 30, 0.85);
  border-radius: 12px;
  padding: 12px 28px;
  z-index: 10001;
  box-shadow: 0 4px 16px #0002;
  gap: 32px;
  @media (max-width: 600px) {
    padding: 8px 16px;
    gap: 12px;
  }
  :global(.dark) & {
    background: rgba(40, 40, 40, 0.92);
    color: #fff;
  }
}

.toolbarButton {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 8px;
  box-shadow: 0 2px 8px #0001;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  &:hover:enabled {
    background: #f0f0f0;
    color: #0057ff;
  }
  &:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
  }
  :global(.dark) & {
    background: #282828;
    color: #fff;
    &:hover:enabled {
      background: #333;
      color: #67aaff;
    }
    &:disabled {
      background: #222;
      color: #555;
    }
  }
}

.toolbarPageNum {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
  :global(.dark) & {
    color: #fff;
  }
}

.num {
  color: #606366;
  width: 100%;
  padding: 0 12px;
  text-align: left;
  font-size: 14px;
  margin-bottom: 8px;
  font-size: 16px;

  :global(.dark) & {
    color: rgba(255, 255, 255, 0.5);
  }
}

.left {
  display: flex;
  align-items: center;
  color: #000;

  .description {
    font-size: 16px;
    color: #6e6e73;
    font-weight: 400;
    margin-left: 20px;
    line-height: 1;

    :global(.dark) & {
      color: rgba(255, 255, 255, 0.5);
    }
  }
}